package com.dodayum.action;

import com.alibaba.dubbo.common.URL;
import com.alibaba.fastjson.JSON;
import com.dodayum.dubbo.UrlList;

import java.util.Map;

/**
 * @Author DoDayum
 * @Date 2024-01-25-21:42
 */
public class DubboAction {

    public String getAllUrl(){
        Map<String, URL> allUrl = UrlList.getAllUrl();
        return JSON.toJSONString(allUrl);
    }

    public void deleteAll(){
        UrlList.deleteAllUrl();
    }

}
